openapi: 3.0.1
info:
title: ''
description: ''
version: 1.0.0
paths:
/v1beta/models/gemini-2.5-flash-image-preview:generateContent:
post:
summary: 图片编辑(nano banana)
deprecated: false
description: >-
官方文档:https://ai.google.dev/gemini-api/docs/image-generation?hl=zh-cn
tags:
- 模型接口/Google Gemini/Google Gemini接口
parameters:
- name: Authorization
in: header
description: ''
required: true
example: sk-
schema:
type: string
default: sk-
- name: Content-Type
in: header
description: ''
required: true
example: application/json
schema:
type: string
requestBody:
content:
application/json:
schema:
type: object
properties:
contents:
type: array
items:
type: object
properties:
parts:
type: array
items:
type: object
properties: {}
x-apifox-orders: []
x-apifox-orders:
- parts
required:
- parts
generationConfig:
type: object
properties:
responseModalities:
type: array
items:
type: string
x-apifox-orders:
- responseModalities
required:
- responseModalities
x-apifox-orders:
- contents
- generationConfig
required:
- contents
- generationConfig
example:
contents:
- role: user
parts:
- text: >-
'Hi, This is a picture of me. Can you add a llama next
to me
- inline_data:
mime_type: image/jpeg
data: iVBOR3fabzK5CYII=。。base64。。。。
generationConfig:
responseModalities:
- TEXT
- IMAGE
responses:
'200':
description: ''
content:
application/json:
schema:
type: object
properties: {}
x-apifox-orders: []
headers: {}
x-apifox-name: 成功
security: []
x-apifox-folder: 模型接口/Google Gemini/Google Gemini接口
x-apifox-status: released
x-run-in-apifox: https://app.apifox.com/web/project/5503894/apis/api-342125236-run
components:
schemas: {}
securitySchemes: {}
servers:
- url: '{{base_url}}'
description: 测试环境
- url: https://newapi.eronmind.com
description: 正式环境
security: []